$OpenBSD: patch-htmldoc_file_c,v 1.5 2014/11/07 13:33:40 benoit Exp $
--- htmldoc/file.c.orig	Fri Dec 30 06:03:21 2011
+++ htmldoc/file.c	Sun Apr  6 17:57:37 2014
@@ -66,7 +66,7 @@
 #  define OPENPERM	(_S_IREAD | _S_IWRITE)
 #else
 #  define TEMPLATE	"%s/%06ld.%06d.tmp"
-#  define OPENMODE	(O_CREAT | O_RDWR | O_EXCL | O_TRUNC)
+#  define OPENMODE	(O_CREAT | O_RDWR | O_EXCL)
 #  define OPENPERM	0600
 #endif /* WIN32 */
 
@@ -164,7 +164,7 @@ file_cleanup(void)
   }
 #else
   if ((tmpdir = getenv("TMPDIR")) == NULL)
-    tmpdir = "/var/tmp";
+    tmpdir = "/tmp";
 #endif /* WIN32 */
 
  /*
@@ -1086,7 +1086,7 @@ file_temp(char *name,			/* O - Filename */
   }
 #else
   if ((tmpdir = getenv("TMPDIR")) == NULL)
-    tmpdir = "/var/tmp";
+    tmpdir = "/tmp";
 #endif /* WIN32 */
 
   snprintf(name, (size_t)len, TEMPLATE, tmpdir, (long)getpid(), web_files);
